import request from '@/utils/request'


export function list(query) {
  return request({
    url: '/system/resumeRoyalties/list',
    method: 'get',
    params: query
  })
}

export function getByUpMonthEntryEmp(query) {
  return request({
    url: '/system/resumeRoyalties/getByUpMonthEntryEmp',
    method: 'get',
    params: query
  })
}


export function getResumeRoyaltiesInfo(query) {
  return request({
    url: '/system/resumeRoyalties/getResumeRoyaltiesInfo',
    method: 'get',
    params: query
  })
}


export function changeRoyalties(query) {
  return request({
    url: '/system/resumeRoyalties/changeRoyalties',
    method: 'get',
    params: query
  })
}

export function updateRoyalties(data) {
  return request({
    url: '/system/resumeRoyalties/updateRoyalties',
    method: 'put',
    data: data
  })
}

export function updateNotarizeStatus(id, empId, royalties) {
  return request({
    url: '/system/resumeRoyalties/updateNotarizeStatus/' + id + '/' + empId + '/' + royalties,
    method: 'put'
  })
}


export function getBonusList(query) {
  return request({
    url: '/system/resumeRoyalties/getBonusList',
    method: 'get',
    params: query
  })
}


export function getBonusInfo(query) {
  return request({
    url: '/system/resumeRoyalties/getBonusInfo',
    method: 'get',
    params: query
  })
}



export function getMaintainEmp(query) {
  return request({
    url: '/system/resumeRoyalties/getMaintainEmp',
    method: 'get',
    params: query
  })
}


export function updateBonusStatus(id, empId, royalties) {
  return request({
    url: '/system/resumeRoyalties/updateBonusStatus/' + id + '/' + empId + '/' + royalties,
    method: 'put'
  })
}
